﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace OurWeb.Utility
{
    public static class XMLHelper
    {
        public static XmlNodeList GetXmlNodeList(string fileName, string xPath)
        {
            try 
            { 
                XmlDocument xmlDoc = new XmlDocument();
                xmlDoc.Load(fileName);
                XmlElement root = xmlDoc.DocumentElement;
                return root.SelectNodes(xPath);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
    }
}
